package net.zoneland.knowledge.model;

import net.zoneland.knowledge.utils.DateHelper;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 新功能提醒实体类.
 */
public class PopupPrompt {

    /**
     * 主键id
     */
    private String id;

    /**
     * 录入时间.
     */
    @DateTimeFormat(pattern = DateHelper.DEFAULT_DATE_FORMAT)
    private Date entryTime;

    /**
     * 失效时间.
     */
    @DateTimeFormat(pattern = DateHelper.DEFAULT_DATE_FORMAT)
    private Date failTime;

    /**
     * 内容.
     */
    private String content;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(Date entryTime) {
        this.entryTime = entryTime;
    }

    public Date getFailTime() {
        return failTime;
    }

    public void setFailTime(Date failTime) {
        this.failTime = failTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "PopupPrompt{" +
                "id='" + id + '\'' +
                ", entryTime=" + entryTime +
                ", failTime=" + failTime +
                ", content='" + content + '\'' +
                '}';
    }
}
